 package com.game.caro.client;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.HeadlessException;
import java.awt.LayoutManager;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ContainerEvent;
import java.awt.event.ContainerListener;

import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import sun.awt.HorizBagLayout;

import com.sun.xml.internal.bind.v2.runtime.Location;



public class SwingClient extends JFrame
{

	/**
	 * @param args
	 */
	private String serverAddres;
	private JButton btnConnect=new JButton("Connect");
	private JButton btnDisconnect=new JButton("Disconnect");
	private JButton btnQuit=new JButton("Quit"); 
	private ImageIcon image;
	
    
	
	public SwingClient() throws HeadlessException
	{
		this.setSize(1015,720);
		this.setLocation(10,10);
		this.setTitle("Swing Client");
		this.setLayout(new BorderLayout())	;
		
		image=new ImageIcon("C:/Documents and Settings/Administrator/workspace/javaGameCaro/images/bannergame.jpg");
		JLabel lblImage=new JLabel(image);
		
		this.add(lblImage);
		JMenuBar menubar=new JMenuBar();
		menubar.add(btnConnect);
		menubar.add(btnDisconnect);
		menubar.add(btnQuit);		
		JPanel top=new JPanel();		
		top.setLayout(new BoxLayout(top,BoxLayout.LINE_AXIS));
		top.add(lblImage);
		top.add(menubar);
		top.setBackground(Color.darkGray);
		
		this.add(top,BorderLayout.NORTH);
		this.setForeground(Color.cyan);
		this.setVisible(true);
		
	}
	public static void main(String[] args) 
	{
		new SwingClient();

	}


}
